LOCAL_PATH := $(call my-dir)  
 
include $(CLEAR_VARS)
LOCAL_SRC_FILES := prebuilt/libtinyalsa.so
LOCAL_MODULE := libtinyalsa

LOCAL_EXPORT_C_INCLUDES := $(LOCAL_PATH)/jni/include
include $(PREBUILT_SHARED_LIBRARY)

include $(CLEAR_VARS)
LOCAL_SRC_FILES := prebuilt/libcutils.so
LOCAL_MODULE := libcutils
include $(PREBUILT_SHARED_LIBRARY)

include $(CLEAR_VARS)
LOCAL_SRC_FILES := prebuilt/libutils.so
LOCAL_MODULE := libutils
include $(PREBUILT_SHARED_LIBRARY)

include $(CLEAR_VARS)
LOCAL_SRC_FILES := prebuilt/libc++.so
LOCAL_MODULE := libc++
include $(PREBUILT_SHARED_LIBRARY)

include $(CLEAR_VARS)
LOCAL_SRC_FILES := prebuilt/libbacktrace.so
LOCAL_MODULE := libbacktrace
include $(PREBUILT_SHARED_LIBRARY)

include $(CLEAR_VARS)
LOCAL_SRC_FILES := prebuilt/libbase.so
LOCAL_MODULE := libbase
include $(PREBUILT_SHARED_LIBRARY)

include $(CLEAR_VARS)
LOCAL_SRC_FILES := prebuilt/libunwind.so
LOCAL_MODULE := libunwind
include $(PREBUILT_SHARED_LIBRARY)

include $(CLEAR_VARS)
LOCAL_SRC_FILES := prebuilt/liblzma.so
LOCAL_MODULE := liblzma
include $(PREBUILT_SHARED_LIBRARY)

include $(CLEAR_VARS)  
  
LOCAL_MODULE    := TestAudio  
LOCAL_SRC_FILES := com_example_androidalsa_MainActivity.cpp
LOCAL_C_INCLUDES += $(LOCAL_PATH)/include
LOCAL_SHARED_LIBRARIES += libtinyalsa libcutils libutils libc++ libbacktrace libbase libunwind liblzma
LOCAL_LDLIBS += -llog -landroid 
LOCAL_CFLAGS += -m64
include $(BUILD_SHARED_LIBRARY)  
